package com.zhichat.service;

import com.zhichat.web.dto.MsgDTO;
import com.zhichat.web.dto.MsgUploadFileDTO;
import com.zhichat.web.vo.ws.MsgVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @ClassName: MessageService
 * @Description: 消息service
 * @Author: 团长九哥 https://space.bilibili.com/602197686
 * @CreateDate: 2024/12/18 10:12
 */
public interface MessageService {
    MsgVO<String> sendMsg(MsgDTO dto);

    List<String> downloadFileMsg(Long id, Integer type, Boolean isCover);

    void downloadFileMsg1(String id, Integer type, Boolean isCover, HttpServletResponse response);

    void downloadMsgFileMsg(String id, Boolean isCover, HttpServletResponse response);

    Boolean sendFileSucCallback(HttpServletRequest request);

    boolean uploadFile(MsgUploadFileDTO dto);
}
